import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
// 仓库管理
import Arrival from './views/nav2/Arrival.vue'
import Warehousing from './views/nav2/Warehousing.vue'
import stock from './views/nav2/stock.vue'
import Outbound from './views/nav2/Outbound.vue'
import classAdmin from './views/nav2/classAdmin.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    { path: '/main', component: Main ,name: '主页'},
    {
        path: '/',
        component: Home,
        name: '仓库管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/Arrival', component: Arrival, name: '到货管理' },
            { path: '/Warehousing', component: Warehousing, name: '入库管理' },
            { path: '/stock', component: stock, name: '库存管理' },
            { path: '/Outbound', component: Outbound, name: '出库管理' },
            { path: '/classAdmin', component: classAdmin, name: '分类管理' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;